Tweaks to network-bridge script.
authoriap10@firebug.cl.cam.ac.uk <iap10@firebug.cl.cam.ac.uk>
Mon, 15 Aug 2005 21:47:44 +0000 (21:47 +0000)
committeriap10@firebug.cl.cam.ac.uk <iap10@firebug.cl.cam.ac.uk>
Mon, 15 Aug 2005 21:47:44 +0000 (21:47 +0000)
Signed-off-by: ian@xensource.com
tools/examples/network-bridge

index d9fc2d855f984f455cacb828dda89a27e84c9feb..24df59809a65507f2230ea632574793c43a5c62a 100755 (executable)
@@ -188,12 +188,13 @@ op_start () {
                fi
        fi
        ip link set ${netdev} name p${netdev}
-       ip link set veth0 name eth0
+       ip link set veth0 name ${netdev}
        ifconfig p${netdev} -arp down
        ifconfig p${netdev} hw ether fe:ff:ff:ff:ff:ff
        ifconfig ${netdev} hw ether ${mac}
        add_to_bridge ${bridge} vif0.0
        add_to_bridge ${bridge} p${netdev}
+       ip link set ${bridge} up
        ip link set vif0.0 up
        ip link set p${netdev} up
        if ! ifup ${netdev} ; then